<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition  xmlns="http://www.w3.org/1999/xhtml"  
                 xmlns:h="http://java.sun.com/jsf/html"  
                 xmlns:f="http://java.sun.com/jsf/core"
                 xmlns:p="http://primefaces.prime.com.tr/ui"
                 xmlns:ui="http://java.sun.com/jsf/facelets"
                 template="templates/StakeholderPortalTemplateUnauthenticated.xhtml">    
   
    <ui:define name="loginContent">     

        <p:panel id="panel" header="#{bundle['forgotpassword.label']}" style="margin-bottom:10px;">  
            <p:messages />  
            <h:panelGrid columns="3" cellpadding="5">  
                <h:outputLabel id="usernameLabel" value="#{bundle['password.username.label']}"/>  
                <h:inputText id="username" value="#{stakeholderForgotPasswordManagedBean.username}" required="true" requiredMessage="#{bundle['password.username.required']}"/>
                <p:message for="username"/>
                
                <h:outputLabel id="bizRegNumberLabel" value ="#{bundle['password.bizRegNumber.label']}"/>
                <p:inputText id="bizRegNumber" value="#{stakeholderForgotPasswordManagedBean.bizRegNumber}" required="true" requiredMessage="#{bundle['password.bizRegNumber.required']}"/>
                <p:message for="bizRegNumber"/>
            </h:panelGrid>
            <p:commandButton id="submit" ajax="true" value="#{bundle['forgotpassword.submit.button']}" update="panel" actionListener="#{stakeholderForgotPasswordManagedBean.requestPassword}"/>
        </p:panel> 
    </ui:define>
</ui:composition>
